<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>出海预约信息管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	$(document).ready(function() {

	});
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
</head>
<body>

	<form:form id="searchForm" modelAttribute="shipSeaBookStat"
		action="${ctx}/ship/shipSeaBookStat/shipSeaBookStatList" method="post"
		class="breadcrumb form-search">
		<ul class="ul-form">
			<li><label>办理点：</label> <form:input path="appointAddress"
					htmlEscape="false" maxlength="50" class="input-search" /></li>
			<li><label>时间：</label> <form:input path="year"
					htmlEscape="false" maxlength="50" class="input-search" /></li>
			<li class="btns"><input id="btn_search" class="btn btn-primary"
				type="submit" value="查询" /></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}" />
	<div class="css-tl">
		<table id="contentTable"
			class="table table-striped table-bordered table-condensed">
			<thead>
				<tr>
					<th>序号</th>
					<th>时间</th>
					<th>预约时间</th>
					<th>周一</th>
					<th>周二</th>
					<th>周三</th>
					<th>周四</th>
					<th>周五</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${shipSeaBookStatlist}" var="shipSeaBookStat"
					varStatus="status">
					<tr>
						<td>${ status.index + 1}</td>
						<td>${shipSeaBookStat.year}-${shipSeaBookStat.month}</td>
						<td>${shipSeaBookStat.date}</td>
						<td>
						<c:if test="${shipSeaBookStat.dateType==0}">
							<a
							href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=monday&dateTypeName=moning','出海预约信息',1000,600,'60px')">
								${shipSeaBookStat.monday} </a>
						</c:if>
						<c:if test="${shipSeaBookStat.dateType==1}">
							<a
							href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=monday&dateTypeName=aftermoon','出海预约信息',1000,600,'60px')">
								${shipSeaBookStat.monday} </a>
						</c:if>
								</td>
								<td>
						<c:if test="${shipSeaBookStat.dateType==0}">
							<a
							href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=tuesday&dateTypeName=moning','出海预约信息',1000,600,'60px')">
								${shipSeaBookStat.tuesday} </a>
						</c:if>
						<c:if test="${shipSeaBookStat.dateType==1}">
							<a
							href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=tuesday&dateTypeName=aftermoon','出海预约信息',1000,600,'60px')">
								${shipSeaBookStat.tuesday} </a>
						</c:if>
								</td>
						
						<td>
							<c:if test="${shipSeaBookStat.dateType==0}">
								<a
								href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=wednesday&dateTypeName=moning','出海预约信息',1000,600,'60px')">
									${shipSeaBookStat.wednesday} </a>
							</c:if>
							<c:if test="${shipSeaBookStat.dateType==1}">
								<a
								href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=wednesday&dateTypeName=aftermoon','出海预约信息',1000,600,'60px')">
									${shipSeaBookStat.wednesday} </a>
							</c:if>
						</td>
						<td>
							<c:if test="${shipSeaBookStat.dateType==0}">
								<a
								href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=thursday&dateTypeName=moning','出海预约信息',1000,600,'60px')">
									${shipSeaBookStat.thursday} </a>
							</c:if>
							<c:if test="${shipSeaBookStat.dateType==1}">
								<a
								href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=thursday&dateTypeName=aftermoon','出海预约信息',1000,600,'60px')">
									${shipSeaBookStat.thursday} </a>
							</c:if>		
						</td>
						<td>
							<c:if test="${shipSeaBookStat.dateType==0}">
								<a
								href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=friday&dateTypeName=moning','出海预约信息',1000,600,'60px')">
									${shipSeaBookStat.friday} </a>
							</c:if>
							<c:if test="${shipSeaBookStat.dateType==1}">
								<a
								href="javascript:void(0);" onclick="openWindow('/ship/shipSeaBookStat/queryShipSeaBookView?year=${shipSeaBookStat.year}&month=${shipSeaBookStat.month}&weekDate=friday&dateTypeName=aftermoon','出海预约信息',1000,600,'60px')">
									${shipSeaBookStat.friday} </a>
							</c:if>	
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>



	<script type="text/javascript">
		/* add for lxh 20160309
		url :url /allAsset/dialogCategoryIndex
		title:标题
		width：宽度
		height：高度
		top：窗口离顶部的距离,可以是百分比或像素(如 100px)
		use:打开新增窗口
		 */
		function opencreateWindow(url, title, width, height, topValue) {
			url = "iframe:" + "${ctx}/" + url;
			topValue = (topValue == '' ? '10%' : '10px');
			top.$.jBox.open(url, title, width, height,
					{
						persistent : true,
						top : topValue,
						buttons : {},
						submit : function(v, h, f) {
							/*  点击窗口按钮后的回调函数，返回true时表示关闭窗口，参数有三个，
							 v表示所点的按钮的返回值，
							 h表示窗口内容的jQuery对象，
							 f表示窗口内容里的form表单键值
							 */
						},
						closed : function() {
							/* 窗口关闭后执行的函数 */
							var istrue = $('#closedwindow',
									window.parent.document).val();
							if (istrue == "true") {
								//window.location.reload();
								$('#closedwindow', window.parent.document).val(
										"false");
								$("#btn_search").click();
							}
						}
					});
		}
	</script>

</body>
</html>
